package com.wangyi;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;

/**
 * 宠物之家后端项目启动类
 */
@SpringBootApplication // 申明当前类是一个SpringBoot项目的启动类
@MapperScan("com.wangyi.*.mapper")
@ServletComponentScan(value = {"com.wangyi.basic.listener"})
public class PethomeApplication {
    public static void main(String[] args) {
        // 使用SpringBoot的启动类去运行或启动Spring应用
        SpringApplication.run(PethomeApplication.class,args);
    }
}
